package cn.hou.java.designpattern._12bridge;

//抽象类
public abstract class Person {
	
	//引用行为接口:桥接(桥梁)
	private Eat eat;
	public Person(Eat eat) {
		this.eat = eat;
	}
	
	public abstract void eat();

	public Eat getEat() {
		return eat;
	}
	public void setEat(Eat eat) {
		this.eat = eat;
	}
}
